package com.glor.operation.common.excep;

import com.glor.operation.common.Response;

/**
 * Created by heylear.cai on 2016/2/18.
 */
public enum ErrorCode implements Response {
    BUSSINESS_ERROR(10000, "服务器出现内部错误！");

    int errorCode;

    String message;

    ErrorCode(int errorCode, String message){
        this.errorCode = errorCode;
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public int getStatus() {
        return this.errorCode;
    }
}
